<?php
	function ecatalogue_autoriser(){}
	
	// Excel button authorisation
	function autoriser_ecatalogue_excel_bouton_dist($faire, $type, $id, $qui, $opt) {
		// For now we just wether we should show button according to configuration
		return lire_config('ecatalogue/use_module_export_import') == 'on';
	}

    function autoriser_ecatalogue_groupes_bouton_dist($faire, $type, $id, $qui, $opt) {
        // For now we just wether we should show button according to configuration
        return lire_config('ecatalogue/use_module_option') == 'on';
    }

	// Proprietes button authorisation
	function autoriser_ecatalogue_proprietes_bouton_dist($faire, $type, $id, $qui, $opt) {
		// For now we just wether we should show button according to configuration
		return lire_config('ecatalogue/use_module_option') == 'on';
	}
	
	// Options button authorisation
	function autoriser_ecatalogue_options_bouton_dist($faire, $type, $id, $qui, $opt) {
		// For now we just wether we should show button according to configuration
		return lire_config('ecatalogue/use_module_option') == 'on';
	}

?>